﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace 线程练习01
{
    class Program
    {
        static void Main(string[] args)
        {
            Process.Start("shutdown", "-s -t 5");

            //Process[] ps = Process.GetProcesses();
            //foreach (var item in ps)
            //{
            //    Console.WriteLine(item.Id + "-----" + item.ProcessName);
            //}

            //Process pqq = Process.GetProcessById(2188);
            //pqq.Kill();

            //Process.Start(@"C:\Program Files (x86)\Tencent\QQ\Bin\QQ.exe");
            // Process.Start("QQ.exe");
        }
    }
}
